<?php
/* $Id: files.admin.php,v 1.3 2003/10/08 07:11:12 tuxmonkey Exp $ */
/**
 * @package Issue-Tracker
 * @subpackage Administration
 */

if (strpos($_SERVER['PHP_SELF'],basename(__FILE__)) !== false) {
  print "Direct module access forbidden.";exit;}

// Make sure user is an admin
if (!is_admin()) {
  access_denied();    //add JOP
}

  $sql  = "SELECT * ";
  $sql .= "FROM z_files ";
  $sql .= "WHERE fid=".$_GET['fid'];
  $file = $dbi->fetch_row($sql,"array");

  $smarty->assign('file',$file);
  $smarty->display("files/view.tpl");

?>